package com.bruce.pattern.creational.builder;

/**
 * Created by bruce on 2018/11/2 20:43
 */
public class CourseBuilder extends CourseAbstractBuilder {

    private Course course = new Course();

    @Override
    public CourseBuilder courseName(String courseName) {
        course.setCourseName(courseName);
        return this;
    }

    @Override
    public CourseBuilder coursePPT(String coursePPT) {
        course.setCoursePPT(coursePPT);
        return this;
    }

    @Override
    public CourseBuilder courseVideo(String courseVideo) {
        course.setCourseVideo(courseVideo);
        return this;
    }

    @Override
    public CourseBuilder courseArticle(String courseArticle) {
        course.setCourseArticle(courseArticle);
        return this;
    }

    @Override
    public CourseBuilder courseQA(String courseQA) {
        course.setCourseQA(courseQA);
        return this;
    }

    @Override
    public Course build() {
        return course;
    }
}
